package com.yyys.web.entity;

import java.io.Serializable;

/**
 * Created by zhengsenwen on 2017/8/11.
 */
public class DRGoodsInfoIdClass implements Serializable {

    private static final Long serialVersionUID = 1L;

    private Integer drId;
    private String rq;
    private String spId;
    private Integer cbId;

    public DRGoodsInfoIdClass() {
    }

    public Integer getDrId() {
        return drId;
    }

    public void setDrId(Integer drId) {
        this.drId = drId;
    }

    public String getRq() {
        return rq;
    }

    public void setRq(String rq) {
        this.rq = rq;
    }

    public String getSpId() {
        return spId;
    }

    public void setSpId(String spId) {
        this.spId = spId;
    }

    public Integer getCbId() {
        return cbId;
    }

    public void setCbId(Integer cbId) {
        this.cbId = cbId;
    }

    @Override
    public int hashCode() {
        final int PRIME = 31;
        int result = 1;
        result = PRIME * result + ((drId == null) ? 0 : drId.hashCode());
        result = PRIME * result + ((rq == null) ? 0 : rq.hashCode());
        result = PRIME * result + ((spId == null) ? 0 : spId.hashCode());
        result = PRIME * result + ((cbId == null) ? 0 : cbId.hashCode());
        return result;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (null == obj) {
            return false;
        }
        final DRGoodsInfoIdClass other = (DRGoodsInfoIdClass) obj;
        if (drId == null) {
            if (other.drId != null) {
                return false;
            }
        } else if (!drId.equals(other.drId)) {
            return false;
        }
        if (rq == null) {
            if (other.rq != null) {
                return false;
            }
        } else if (!rq.equals(other.rq)) {
            return false;
        }
        if (spId == null) {
            if (other.spId != null) {
                return false;
            }
        } else if (!spId.equals(other.spId)) {
            return false;
        }
        if (cbId == null) {
            if (other.cbId != null) {
                return false;
            }
        } else if (!cbId.equals(other.cbId)) {
            return false;
        }
        return true;
    }
}
